﻿using System;

using Ah.Testudin.Engine.Actors;
using Ah.Testudin.Engine.Actors.Components;

namespace Ah.Testudin.Engine.Events.Components
{
    public class PhysicsComponentCreatedEvent : ITestudinEvent
    {
        #region Properties

        public PhysicsComponent PhysicsComponent { get; private set; }

        #endregion

        public PhysicsComponentCreatedEvent(
            PhysicsComponent physicsComponent)
        {
            if (physicsComponent == null)
            {
                throw new ArgumentNullException("physicsComponent");
            }

            this.PhysicsComponent = physicsComponent;
        }

        #region ITestudinEvent

        public EventType EventType { get { return EventType.PhysicsComponentCreated; } }

        #endregion
    }
}
